<?php

namespace App\Http\Controllers\Api\V1\Requests;

use Rainsens\Dinglog\Facades\Dinglog;

/**
 * Class AuthStoreRequest
 * @package App\Http\Controllers\Api\V1\Requests
 *
 * @property $phone
 * @property $password
 * @property $captcha_key
 * @property $captcha_code
 */
class AuthStoreRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'phone' => 'required|phone:CN,mobile',
	        'password' => 'required|string|min:6'
        ];
    }

	public function attributes(): array
	{
		return [
			'phone' => '手机号码',
			'password' => '密码'
		];
	}
}
